package cn.zyg.sentinel;

import cn.zyg.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderFallbackClass {
    public static User getByIdFallback(@PathVariable("id") Long id, Throwable e){
        return new User(-1L, "降级了，服务器异常");
    }
}
